function [ results ] = wekaXval( arffname, learner_name, options, folds)
%UNTITLED Summary of this function goes here
%   Detailed explanation goes here
results=0;
options=weka.core.Utils.splitOptions(options);
wekaData=loadARFF(arffname);
rand=javaObject('java.util.Random',1);
learner=['weka.classifiers.',learner_name];
xval=javaObject('weka.classifiers.Evaluation',wekaData);
xval.crossValidateModel(learner, wekaData, folds, options, rand);
results=xval;
end

